package cn.gxa.j229.bug.finance.service.borrowing.impl;

import cn.gxa.j229.bug.finance.mapper.*;
import cn.gxa.j229.bug.finance.service.borrowing.PullMeanService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


@Service("pullMeanService")
public class PullMeanServiceImpl  implements PullMeanService {

    @Resource
    TbGradeMapper tbGradeMapper;
    @Resource
    TbRepaymentMapper tbRepaymentMapper;
    @Resource
    TbTypeMapper tbTypeMapper;
    @Resource
    TbPurposeMapper tbPurposeMapper;
    @Resource
    TbGuaranteeMapper tbGuaranteeMapper;
    @Resource
    TbAddMoneyMapper tbAddMoneyMapper;
    @Resource
    LoanStateMapper loanStateMapper = null;
    @Resource
    TbPledgeMapper tbPledgeMapper;
    @Resource
    CategoryMapper categoryMapper;
    @Resource
    TbStateMapper tbStateMapper;
    @Resource
    TbLabelMapper tbLabelMapper;



    @Override
    public List<Map<String,Object>> findAllFromTbGrade() {
        return tbGradeMapper.findAll();
    }

    @Override
    public List<Map<String,Object>> findAllFromTbRepayment() {
        return tbRepaymentMapper.findAll();
    }

    @Override
    public List<Map<String,Object>> findAllFromTbType() {
        return tbTypeMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromTbPurpose() {
        return tbPurposeMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromTbGuarantee() {
        return tbGuaranteeMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromTbAddMoney() {
        return tbAddMoneyMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromLoanState() {
        return loanStateMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromTbPledge() {
        return tbPledgeMapper.findAll();
    }

    @Override
    public List<Map<String, Object>> findAllFromCategory() {
        return categoryMapper.findAllByPull();
    }

    @Override
    public List<Map<String, Object>> findAllFromTbState() {
        return tbStateMapper.findAll();
    }

    /**
     * 标的上架维护
     * 标签框选项菜单
     * @return
     */
    @Override
    public List findAllFromTbLabel() {
        return tbLabelMapper.findAll();
    }


}
